home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 32
/
Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso
/
Aminet
/
comm
/
tcp
/
hserv.lha
/
hserv
/
cgi-bin
/
gmtfiledate.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-05-24
|
715b
|
24 lines
/* GMTFileDate.rexx */
parse arg file
call GetDate("NOW","GMT")
date="NOW"
if GetFileDate(file,"FD") then do
call date2gmt("FD")
if CompareDates("NOW","FD")<0 then date="FD"
end
say "Content-Type: text/html"
say
say translateDate(formatdate(date,"%m %w %d %Y %H:%M:%S GMT"))
exit
/***************************************************************************/
translateDate: procedure
d.0="Sun";d.1="Mon";d.2="Tue";d.3="Wed";d.4="Thu";d.5="Fri";d.6="Sat"
m.1="Jan";m.2="Feb";m.3="Mar";m.4="Apr";m.5="May";m.6="Jun";m.7="Jul";m.8="Aug";m.9="Sep";m.10="Oct";m.11="Nov";m.12="Dec"
parse arg i j rest
i=i%1
return d.j"," m.i || rest
/***************************************************************************/